﻿using System;
using System.ComponentModel.DataAnnotations;
using ZhongJia.Core.Consts;
using ZhongJia.Core.Domain;

namespace GuanQL.Core.Domain.Medias
{
    public class Picture : BaseEntity
    {
        [MaxLength(Validations.GeneralShortestLength)]
        public string MimeType { get; set; }

        [MaxLength(Validations.GeneralLength)]
        public string FileName { get; set; }

        public bool IsTransient { get; set; }

        public bool IsSystem { get; set; }

        public PictureType Type { get; set; }

        public PictureStorage PictureStorage { get; set; }
    }
}
